home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1997 #1
/
Amiga Plus CD - 1997 - No. 01.iso
/
pd
/
programmierung
/
proasm
/
rexx
/
dopus_341
/
dopus2ced.dopus
< prev
next >
Wrap
Text File
|
1996-04-29
|
1KB
|
45 lines
/* Load DOpus selected files into the Edge */
/* this script is for DOpus versions prior than 4.0 */
/* 03.01.94 by Daniel Weber */
ADDRESS 'dopus_rexx'
OPTIONS RESULTS
status 3 /* get #of active window */
win = result
status 13 win /* get actual selected drive */
path = result
getselectedfiles '+'
IF RC ~= 0 THEN EXIT(0)
files = result
DO WHILE files ~=''
ADDRESS 'EDGE'
PARSE VAR files txtfile '+' files
getenvvar _ge_errlevel
errlevel = result
New
IF RC == 0 THEN DO
ADDRESS value result
open path''txtfile
END
status 16 /* current size of the active file */
FileState = result
status 18 /* #of changes made to the act. file */
FileState = FileState + result /* load it only if no file is loaded */
IF (FileState ~= 0) THEN DO /* and no changes are made ... */
Open New /* else open a new view :) */
IF (result = 0) THEN DO
okay1 "Couldn't open a new view!" /* no more views! max. 10 views */
EXIT(0)
END
END
Open path''txtfile
END
EXIT(0)